Skip to content

Sync ako/mxcli: generic Java action result type, two error-handler rejoin fixes, linear describe; checks closing two parity sweeps (MDL120-125) - #2005

Merged
ako merged 57 commits into
mendixlabs:mainfrom
ako:main
Dec 1, 2026

Conversation

@ako

@ako ako commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Syncs ako/mxcli:main into upstream: 22 commits since the last sync (#1990) — four microflow fixes (a generic Java action's result type, two error-handler rejoin defects, an exponential describe), and the second, third and fourth check-gap parity sweeps with the checks that close what the second and third found.

Fixes #1986, fixes #1989, fixes #1994.

Microflows

New checks for build errors that passed check and exec

From the check-gap parity sweeps (all 19 gaps of the second and third, plus one more from the first); each measured on MxBuild 11.16.1, one project per case, with clean controls, and each rule stubbed in turn fails exactly its own tests.

  • Microflow members (CE1613). validation feedback on a member the entity does not have (it was written as <entity>.<name>), and change/create setting a member an entity the script itself declares does not have.
  • Calls and expressions. A microflow or nanoflow call that leaves out a parameter (CE0115); a retrieve constraint comparing an attribute with a literal of another type, such as [Qty = 'abc'], [B = 1] or a missing enumeration value (CE0161); sum/average/minimum/maximum … of <expr> over something that is not a number (CE0117).
  • MDL120: an entity event handler's signature (CE7247). The microflow takes exactly one parameter, the entity or one it extends; every before handler returns Boolean.
  • MDL121: an attribute default the type does not accept (CE7247, CE1613 for an enumeration). Stricter than constant defaults: Integer range, Decimal '.5' refused, DateTime yyyy-mm-dd[ hh:mm[:ss]] or [%CurrentDateTime%] only, String within its length, an existing enumeration value in its exact case.
  • Pages. A list view or data grid on a microflow returning an object or a non-entity (CE0551), and a data view on one returning a list (CE0552); visible:/editable: on a String, Integer or enumeration attribute (CE0117); a button argument of the wrong type (CE0117); MDL122 two pages with the same URL (CE5600) or a URL starting with / (CE0899); MDL123 a home page that takes a parameter (CE0529). MDL122/123 are refused by exec too. An example that made a page with a parameter the home page is corrected.
  • Workflows (check -p). A workflow call microflow on a microflow returning String, Integer or an object (CE6678), or with a parameter other than the context object (CE0117); a workflow decision on a String or Integer attribute (CE0078).
  • Domain and Java actions. A call java action argument of the wrong type (CE0117); an association set in create/change to an object of an entity that is not its other end (CE0117); a retrieve over an association from an entity that is not one of its ends (CE0020); MDL124 a scheduled event microflow with a parameter (CE7247); MDL125 a Binary constant (CE0046). MDL124/125 are refused by exec too.
  • add attribute on an external entity the script creates (CE6612), which was already refused for one stored in the project.

Check coverage

  • Three more parity sweeps, fixtures and results in mdl-examples/check-gap/: f31–f50 (6 gaps) and f51–f73 (13 gaps), all closed above; and f75–f98 across import/export mappings, published REST, JavaScript actions, snippets and non-persistent entities (14 gaps), recorded with no checks yet

claude and others added 30 commits November 30, 2026 10:16
…ave (CE1613)

check-gap f25: `validation feedback $I/Nope` passed check -p, check -p
--references and exec, and mxbuild reported CE1613. The builder fell back to
writing <entity>.<name>, and check --references skipped a feedback's target.

Both now ask flowMemberVerdict (systemDates on), the question list operations
already ask (#1646), and report one shared message. Measured on 11.16.1: own,
inherited, bare association and stored createdDate are clean; a missing name,
a wrong-case name and an unstored createdDate are CE1613.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…ion-feedback

# Conflicts:
#	mdl-examples/check-gap/README.md
…ion-feedback

# Conflicts:
#	mdl-examples/check-gap/README.md
…t have (CE1613)

checkMembers asked only the project, so an entity the script creates resolved
to memberUnknown and `change $I (Nope = 1)` passed check --references. It now
asks the script-aware member walk (scriptMemberModel) for such entities,
case-sensitively. Measured on MxBuild 11.16.1: missing and wrong-case members
are CE1613 in change and create; inherited attributes and bare associations
are clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
Nineteen new fixtures (f47 dropped: the parser refuses it). Six are new gaps
where check -p passes and mx check fails: f34 (CE0115), f37 (CE0161), f40,
f41 and f46 (CE7247), and f48 (CE0117). Eleven are already refused, by
check -p or by exec. f39 is the reverse: check refuses an access rule naming
a missing attribute that mx builds clean, even at Prototype.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
check: refuse a validation feedback on a member the entity does not have (CE1613)
check: report a change/create member a script-declared entity does not have (CE1613)
check-gap: second parity sweep, f31-f50 on MxBuild 11.16.1
…cts (MDL120, MDL121)

Check-gap sweep 2, f40/f41/f46: each passed check and exec, and MxBuild
11.16.1 rejected the project.

MDL120: a handler's microflow must take exactly one parameter, the entity or
an entity it extends (none for before create), and every before handler
must return Boolean (CE7247).

MDL121: an attribute default the type does not accept (CE7247), or an
enumeration value the enumeration does not have (CE1613).

Each rule is measured one project per case; all 57 measured cases agree
with mx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…ions (CE0115, CE0161, CE0117)

Check-gap sweep 2, f34/f37/f48: each passed check -p and exec, and MxBuild
11.16.1 rejected the project. Each closes the step a sibling check stopped
short of:

- A flow call that leaves out a parameter (CE0115), beside the check for an
  argument that names no parameter.
- A retrieve constraint comparing an attribute with a literal of another type
  (CE0161), using the access rule's literal table, now shared as
  xpathLiteralTypeProblem.
- The expression form of an aggregate over a non-number, or a bare attribute
  name (CE0117), beside the CE0016 check for the by-attribute form.

All 23 measured cases agree with mx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
An argument naming no parameter is usually the missing one misspelled, so the
missing-argument report (CE0115) is left to the unknown-argument one (CE1613)
when both would fire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…(CE6612)

exec refused it once the create had run; check skipped every script-created
entity, so the two disagreed. The script context now records the external
entities a script creates, with their service, and the existing refusal
covers them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
… linear time

Under IfElseColumn (preset true-right-false-down), measureIf measured the
ELSE body as a branch, discarded that, and measured it again as a column.
Each nested IF did both, so a chain of N decisions cost 2^N: 20 took 3s and
58 never finished, describe module --all included. The ELSE body is now
measured once, the way the style draws it; describe output is unchanged.

Closes #2704

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
Twenty-two fixtures for pages, navigation, workflows, scheduled events,
Java actions and nanoflows. Thirteen are new gaps where check -p passes and
mx check fails: f51 f52 f53 f54 f56 f57 f58 f59 f60 f62 f67 f68 f72. Six
are already refused, by check -p or by exec. Three build clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…24rqgv

fix: a column ELSE is measured once, so a decision chain describes in linear time
…E5600, CE0899, CE0529)

Check-gap sweep 3, the page batch (f51-f57): each passed check -p and exec,
and MxBuild 11.16.1 rejected the project.

- A data source's return shape: a list widget needs a list (CE0551), a
  data view an object (CE0552). flowSignature now carries ReturnShape.
- visible:/editable: on a non-Boolean attribute, enumerations included
  (CE0117).
- A widget action argument of the wrong type (CE0117), by the call-argument
  matrix. flowParam now carries the primitive Kind.
- MDL122: a duplicated page URL (CE5600) or one starting with a slash
  (CE0899).
- MDL123: a home page that takes a parameter (CE0529).

All 23 measured cases agree with mx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
check: event handler signatures and attribute defaults the build rejects (MDL120, MDL121)
…xpressions

# Conflicts:
#	CHANGELOG.md
#	mdl-examples/check-gap/README.md
…e page

A page the script defines twice (create, then create or modify) was compared
with itself and reported as a duplicate URL (12-styling-examples.mdl). Each
page's last definition now stands, and only different pages are compared.

language-970-authoring-language.mdl made a page that takes a parameter the
home page, which MDL123 now refuses (CE0529). The example tests navigation
captions, so its home page is now a page without parameters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…tput

With `$A = call … on error …` followed by `$B = call … on error …` and a
later read of $B, the first handler rejoined after the second call: the
skip-var look-ahead was computed once, for the active handler's variable
($B), and applied to every pending handler. On the first handler's error
path the second call was skipped and the read of $B hit CE0108 in mx check.
The look-ahead is now computed per pending handler from its own variable,
as settleBranchFlow already did for branches.

Closes #2708

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
# Conflicts:
#	CHANGELOG.md
#	mdl/executor/validate_program.go
…24rqgv

fix: a queued error handler is deferred only past reads of its own output
check: missing call arguments, XPath literal types, aggregate expressions (CE0115, CE0161, CE0117)
…microflows, Binary constants

Check-gap sweep 3, the domain and microflow batch (f58 f62 f67 f68 f72):
each passed check -p and exec, and MxBuild 11.16.1 rejected the project.

- A Java action argument of the wrong type (CE0117): the called action's
  primitive parameters are declared to the expression checker as a flow's,
  so the call-argument matrix applies.
- A create or change setting an association to an object of the wrong
  entity (CE0117).
- A retrieve over an association from an entity that is not an end of it
  (CE0020).
- MDL124: a scheduled event whose microflow takes a parameter (CE7247).
- MDL125: a constant of type Binary (CE0046).

All 21 measured cases agree with mx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
claude and others added 27 commits December 1, 2026 07:29
check: refuse add attribute on an external entity the script creates (CE6612)
…6678, CE0117, CE0078)

Check-gap sweep 3, the workflow batch (f59 f60): each passed check -p and
exec, and MxBuild 11.16.1 rejected the project.

- A workflow call microflow returning a String, Integer or object (CE6678).
  It must return a Boolean, an enumeration or nothing.
- A call microflow parameter other than the context object with no mapping
  (CE0117). The context object is passed implicitly.
- A decision on a String or Integer attribute (CE0078).

sdkFlowSignature now sets ReturnKind, so return-type rules judge project
microflows too. 12 of 13 measured cases agree with mx. The 13th, an
enumeration return with unmatched outcomes (CE6686), is left unjudged on
purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…er is bound to

A `List of T` return was typed as the first list argument's type, whichever
type parameter that list binds, and an `entity <T>` argument was never read.
RetrieveFor<InputType, ResultType>(ObjectList: List of InputType,
RetrieveEntity: entity <ResultType>) returns List of ResultType was typed as
the input list, so `sum $Result by Amount` was refused after check passed;
with only entity <T> the result was untyped and the aggregate was written
`sum $Result by ;` (CE0015). The return's type parameter is now matched to
the parameter that binds it (entity <T>, List of T or T), in the full build
and in alter's typing of a stored call.

Closes #2701

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
…24rqgv

fix: a generic Java action's result takes the entity its type parameter is bound to
check-gap: third parity sweep, f51-f73 on MxBuild 11.16.1
check: six page mistakes the build rejects (CE0551, CE0552, CE0117, CE5600, CE0899, CE0529)
# Conflicts:
#	CHANGELOG.md
#	mdl/executor/validate_datasource_args.go
The pages batch (#2717) is merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
Twenty-two fixtures for mappings, published REST, JavaScript actions,
nanoflows, snippets, data sources and entity access. Fourteen are new gaps
where check -p passes and mx check fails. Check and exec disagree on f88.
Four are already refused by check -p. Three build clean. The two mapping
type mismatches were controlled against matching-type twins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…it never produced

`$Rows = <action> on error … end error; $Row = head $Rows; if $Row …`: the
handler rejoined right before the head, so mx check reported CE0108 where
check and exec passed. The read check knew no list operation, aggregate,
cast, rollback, show page or enum/inheritance split; only a declare passed
the skip on to the variable it computes, and only in a flow without a
declared return value. List operations, aggregates and casts now count as
readers and derive their output, in every flow; the skip is not moved onto
the declared return variable, which the final return reads.

Closes #2696

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82qrr1WnXxq1eRn7qRJ
check: Java action argument types, association ends, scheduled event microflows, Binary constants
# Conflicts:
#	CHANGELOG.md
#	mdl-examples/check-gap/README.md
…-pages

# Conflicts:
#	mdl-examples/check-gap/README.md
…24rqgv

fix: a carrying-on error handler skips list operations on the output it never produced
check: workflow call microflow signatures and decision conditions (CE6678, CE0117, CE0078)
check-gap README: mark the pages batch rows as closed
check-gap: fourth parity sweep, f75-f98 on MxBuild 11.16.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment